package com.njust.service;


import com.njust.bean.City;
import com.njust.dao.CityDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityService {

    @Autowired
    private CityDao cityDao;

    public City getCityById(Integer id){

        return cityDao.getCityById(id);
    }

    public List<City> getCityAll(){

        return cityDao.getCityAll();
    }
}
